(function (){



/**计算组别类型*/
function groupType(groupID) {
    let groupAlias = '';
    $.ajax({
        url:"/userFusion/CalculationGroupType",
        dataType:"json",
        data:{groupID:groupID},
        async:false,
        type:"POST",
        success: function (result){
            if (result.flag){
                groupAlias = result.data.groupAlias;
            }else {
                groupAlias = ''
            }

        }
    })
    return groupAlias;
}

function GetGroup() {
    let group;
    $.ajax({
        url:"/userFusion/findAllGroupType",
        dataType:"json",

        async:false,
        type:"POST",
        success: function (result){
            group = result.data;
        }
    })
    return group;
}

function GetS_CDailyStatus() {
    let status
    $.ajax({
        url:"/spot_check/findAllS_CDailyStatus",
        dataType:"json",

        async:false,
        type:"POST",
        success: function (result){
            status = result.data;
        }
    })
    return status;
}

function GetUserDeleteStatus() {
    let status
    $.ajax({
        url:"/userFusion/getUserDeleteStatus",
        dataType:"json",

        async:false,
        type:"POST",
        success: function (result){
            status = result.data;
        }
    })
    return status;
}

function GetUser(uid) {
    let user
    $.ajax({
        url:"/user/uidFinUserName",
        dataType:"json",
        data: {uid:uid},
        async:false,
        type:"post",
        success:function (result){
            user = result.data;
        }
    })
    return user;
}

    window.groupType =groupType
    window.GetGroup = GetGroup
    window.GetS_CDailyStatus = GetS_CDailyStatus
    window.GetUserDeleteStatus = GetUserDeleteStatus
    window.GetUser = GetUser



}(window))